﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    public interface ISystemMenusService
    {
        public Task<int> AddUsersAsync(string title, string link, string icon, int parentId);
        public Task<int> UpdateUsersAsync(int id, string title, string link, string icon, int parentId);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteUsersAsync(int id);
        public Task<List<SystemMenuDto>> GetAllUsersAsync(int deleteId = 1);
        public Task<List<SystemMenuDto>> GetByNameAsync(string title, int deleteId = 1);
        public Task<SystemMenuDto> GetByIdAsync(int id);

        public Task<List<SystemMenuDto>> GetByParentIdAsync(int parentId, int deleteId = 1);
    }
}
